#CACHE{0}
<div id="formMap" name="formMap" style="width: 100%; height: 350px"></div>
<script type="text/javascript">

//<![CDATA[

var letraNH = String.fromCharCode(241);
var letraNHNH = String.fromCharCode(209);
var letraAacute = String.fromCharCode(225);
var letraAAacute = String.fromCharCode(193);
var letraEacute = String.fromCharCode(233);
var letraEEacute = String.fromCharCode(201);
var letraIacute = String.fromCharCode(237);
var letraIIacute = String.fromCharCode(205);
var letraOacute = String.fromCharCode(243);
var letraOOacute = String.fromCharCode(211);
var letraUacute = String.fromCharCode(250);
var letraUUacute = String.fromCharCode(218);

fecha = new Date();
if (GBrowserIsCompatible()) {
    // create the map
    var map = new GMap2(document.getElementById("formMap"));
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng([(#CONFIG**{gis_default_lat,0})],[(#CONFIG**{gis_default_lonx,0})]), [(#CONFIG**{gis_default_zoom,0})], G_MAP_TYPE);

    // creamos el evento para crear nuevos marcadores
    GEvent.addListener(map, "click", function(overlay, point){
	map.clearOverlays();
	if (point) {
		map.addOverlay(new GMarker(point));
		map.panTo(point);
		document.forms.formulaire_article_gis.lat.value = point.y;
		document.forms.formulaire_article_gis.lonx.value = point.x;
	}
    });
	
	[(#ENV**{lat}|oui)
	map.addOverlay(new GMarker(new GLatLng([(#ENV**{lat})],[(#ENV**{lonx})])));
	map.setCenter(new GLatLng([(#ENV**{lat})],[(#ENV**{lonx})]));
	]
	
} else {
    alert("Sorry, the Google Maps API is not compatible with this browser");
}

//]]>

</script>


<div class="formulaire_spip formulaire_editer formulaire_article_gis">
	<!-- br class='spacer' / -->
	[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
	[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]

	[(#ENV{editable})
	
	
	<form method='post' action='#ENV{action}' enctype='multipart/form-data' name='formulaire_article_gis' id='formulaire_article_gis'><div>
		[(#REM) declarer les hidden qui declencheront le service du formulaire 
		parametre : url d'action ]
		#ACTION_FORMULAIRE{#ENV{action}}
	  <ul>
		<li>
			<label for="lat">Latitude</label>
			<input type="text" name="lat" id="lat" class="text" value="[(#ENV**{lat})]" />
		</li>
		<li>
			<label for="lonx">Lonxitude</label>
			<input type="text" name="lonx" id="lonx" class="text" value="[(#ENV**{lonx})]" />
		</li>
		[<li class='saisie_document_gis[ (#ENV**{erreurs}|table_valeur{erreur_upload}|oui)erreur]'>
			<fieldset>
				<legend><:gis:document_joint:></legend>
				[<span class='erreur'>(#ENV**{erreurs}|table_valeur{document})</span>]
				(#ENV**{erreurs}|table_valeur{form_doc})
			</fieldset>
		</li>]
	    <li class="editer_titre obligatoire[ (#ENV**{erreurs}|table_valeur{titre}|oui)erreur]">
	    	<label for="titre"><:info_titre:></label>
			[<span class='erreur'>(#ENV**{erreurs}|table_valeur{titre})</span>]
			<input type='text' name='titre' id='titre' class='text' value="[(#ENV**{titre})]"/>
	    </li>

	  	[(#ENV**{config}|table_valeur{articles_texte}|=={non}|?{#ENV**{texte,''},' '}|oui)
	    <li class="editer_texte[ (#ENV**{erreurs}|table_valeur{texte}|oui)erreur]">
			<label for="texte"><:info_texte:></label>
			[<span class='erreur'>(#ENV**{erreurs}|table_valeur{texte})</span>]
			[(#ENV**{_texte_trop_long,''})]
			<div class="explication"><:texte_enrichir_mise_a_jour:></div>
			[(#VAL{text_area}|barre_typo{#LANG})]
			<textarea name='texte' id='texte' class='barre_inserer' rows='7' cols='40'[
			(#ENV**{browser_caret,''})]>[(#ENV**{texte})]</textarea>
			
			<script type='text/javascript'><!--
			jQuery(function(){
			jQuery('#text_area')
			.height((jQuery(window).height()-80)+'px');
			});
			//--></script>
	    </li>]
	
	  </ul>

	  [(#REM) ajouter les saisies supplementaires : extra et autre, a cet endroit ]
	  <!--extra-->
	  <p class='boutons'><input class='submit' type='submit' value='<:bouton_enregistrer:>' /></p>
	</div></form>
	]
</div>
